import {Directive} from '@angular/core';
import {validateMobile} from '../validators/mobile.validator';
import {NG_VALIDATORS} from '@angular/forms';

@Directive({
  selector: '[appValidateMobile]',
  providers: [
    {provide: NG_VALIDATORS, useValue: validateMobile, multi: true}
  ]
})
export class ValidateMobileDirective {

  constructor() {
  }

}
